home *** CD-ROM | disk | FTP | other *** search
/ Maclife 9 / MACLIFE09.7z / MACLIFE09-No-89.ISO / 特集I / FreeWare / Jetpack 1.0 ト.sit / Jetpack 1.0 ƒ / Notes for Sound Hackers < prev    next >
Text File  |  1993-10-08  |  2KB  |  45 lines

  1. If you are one of those people who likes to hack around with ResEdit and customize
  2. your game sounds, here is the setup for Jetpack, to make it easier on you.
  3.  
  4. Memory:
  5. Jetpack keeps all the "Sound" snd resources and one of the "Music" snd resources
  6. in memory at any given time.  When a game is over, the alphabet sounds are also
  7. loaded if the player gets a high score.  If the about box is selected, the
  8. "About_Music" music is loaded.  So you should set Jetpack's memory partition to
  9. whatever size will accomodate all the "Sound"s, the biggest "Music", and the
  10. larger of either the "About_Music" or all the alphabet sounds.  Simple arithmetic
  11. of the sizes of what you remove or add will give you a pretty good idea.
  12.  
  13. 'snd ' Resources:
  14. Both the sounds and music are numbered 0-n, such as "Music0" or "Sound37".  The
  15. resources must be sequential, as the program will start loading with 0, and stop
  16. when the next higher digit isn't available.  So if you are missing "Sound4", you
  17. will only get sounds 0-3 loaded.  The alphabet sounds have the letters for the
  18. names, and the music played in the about box is called "About_Music".
  19.  
  20. 'sndA' Resource:
  21. This resource has a template.  It simply denotes which sounds go with which effect.
  22. For each effect, there are two numbers, one indicating the first sound, and the other
  23. indicating the last sound.  The game randomly picks a sound from this range whenever
  24. appropriate.  For instance, the DEATH event has 6 sounds, starting with 12, and
  25. ending with 17.  These correspond to 'snd ' resources "Sound12" through "Sound17".
  26. Likewise the JET event has only one sound, beginning and ending with "Sound11".
  27. So if you add or delete sounds you will need to update this resource to tell the
  28. game what is available.
  29.  
  30. 'Nmus' Resource:
  31. This resource holds one number: the number of music sounds.  If you add or
  32. delete music sounds, change this to reflect it.
  33.  
  34. 'musD' Resource:
  35. For each music sound you have, there must be an identically named musD resource.
  36. Each one contains the delay in ticks between plays of the music.  A setting of
  37. 0 means continuous repeat.  This feature is for pieces of music that you only
  38. want to pop up at intervals.  This is appropriate for a heartbeat type sound, or
  39. a musical sting you don't want constantly looping back.  None of the sounds
  40. currently installed have a delay other than 0, but maybe that will change later.
  41. The "About_Music" is a always a continuous loopback.
  42.  
  43. I hope that's descriptive enough, have fun!
  44.  
  45. Mark